version: '3.8'

services:

  app_pg:
    image: postgres
    container_name: app_postgresql
    restart: always
    environment:
      POSTGRES_USER: "developer"
      POSTGRES_PASSWORD: "admin"
      POSTGRES_DB: microblog_db
    volumes:
      - ../test_data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
